<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>进仓单信息  - 仓库管理</title>
	<link href="<%=basePath %>/background/css/layout.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath %>/background/css/header.css" rel="stylesheet" type="text/css" />
    
    <link href="<%=basePath %>/warehouse/css/button.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
  
  <div id="container">
  <div id="header">
		 <jsp:include page="/background/head.jsp"></jsp:include>
	</div>
  <div id="applicationbar">
		 <jsp:include page="/background/app/appbar.jsp"></jsp:include>
	</div>
  <div id="mainContent">
    <div id="sidebar">

		<jsp:include page="/background/left.jsp"></jsp:include>
	</div>
	
    <div id="content" >
    <div style="border:1px solid #ffffff; border-top-color:#6cb1f1; background-color: #e5f3ff; width: 100%; top: 0px;" >
							<a href="<%=basePath %>warehouse/managepurchaselist_warehouse.action">进仓单管理</a> - 进仓单信息
     			
     			<input type="button" value="查看谁有权限" 
     				onclick="javascript:openUrlForDialog('selectoperatorlimitedAction_background.action?limitedCode=<s:property value="limitedcode"/>')"/>
     			
	</div>
	
	<label>
		<s:fielderror id="errormessage" />
	</label>
    
   <table border="0" cellpadding="0" cellspacing="0"  width="100%">
    	 <tr>
     		<td width="100%">
     	
     	</td>
     		</tr>
 		<tr>
     		<td>
     		
     			<font color="red" size="20"><s:property value="operationResult"/></font>
     			<s:fielderror id="errormessage" />
     			<br/>
     			
				<table border="0" cellpadding="0"  cellspacing="0" width="100%"  style= "border:1px solid #ffffff;" class="bottomline">
					<tr> 
					
						<td width="100">进仓单号:</td>
						<td>
						<s:if test="purchaselist.state_purchaselist == 9">
							<s><s:property value="purchaselist.id_purchaselist"/> </s>
						</s:if>
						<s:else>
							<s:property value="purchaselist.id_purchaselist"/> 
						</s:else>
					
						</td>
						<td ></td>
					</tr>
					<tr>
					
						<td width="100">供应商名称:</td>
						<td ><s:property value="purchaselist.supplier_purchaselist"/></td>
						<td ></td>
					</tr>
					
					<tr>
					
						<td>供应商信息:</td>
						<td><s:property value="purchaselist.supplierinfo_purchaselist"/></td>
						<td></td>
					</tr>
					
				</table>
				
				
				<table border="0" cellpadding="0"  cellspacing="0" width="100%"  style= "border:1px solid #ffffff; border-bottom-color:#21a4dc;
    border-left-color:#21a4dc;border-right-color:#21a4dc;border-top-color:#21a4dc">
				
					<tr bgcolor="#f3f7fc">
					
						<td width="105">进仓ID</td>
						<td width="62">图片</td>
						<td width="305">名称</td>
						<td width="55">数量</td>
						<td>单价</td>
						<td>总价</td>
						<td>仓库</td>
					</tr>
					
				<s:iterator id="list" value="list">
					<tr>
					
						<td width="105">
						 	
						 	
						 <s:if test="#list.state_purchase == 9">
							<s><s:property value="#list.id_purchase"/> </s>
						</s:if>
						<s:else>
							<s:property value="#list.id_purchase"/>
						</s:else>
						</td>
						<td><img alt="" src="<s:property value="goodsInfoMap.get(#list.goodsid_purchase).image_goods"/>" width="62" height="62"/></td>
						<td>
						
						
						
						<a href="#"><s:property value="#list.goodsname_purchase"/></a>
							
						</td>
						<td>
							<s:if test="#list.number_purchase > 1">
								<font color="red"><s:property value="#list.number_purchase"/></font>
							</s:if>
							<s:else>
								<s:property value="#list.number_purchase"/>
							</s:else>
							
							
						</td>
						<td>
							<s:property value="#list.price_purchase"/>
						</td>
						<td>
							<s:property value="#list.total_purchase"/>
						</td>
						<td>
							<s:property value="#list.warehousename_purchase"/>
						</td>
					</tr>
				</s:iterator>
				
				</table>
				
				<table border="0" cellpadding="0"  cellspacing="0" width="100%"  style= "border:1px solid #ffffff;" >
					<tr>
					
						<td width="105">运费:</td>
						<td><s:property value="purchaselist.shipprice_purchaselist"/></td>
						<td></td>
					</tr>
					
					<tr>
					
						<td>产品数量:</td>
						<td><s:property value="purchaselist.goodsnumber_purchaselist"/></td>
						<td></td>
					</tr>
					
					<tr>
					
						<td>总额:</td>
						<td><s:property value="purchaselist.total_purchaselist"/></td>
						<td></td>
					</tr>
					
					<tr>
					
						<td>操作员:</td>
						<td><s:property value="purchaselist.username_purchaselist"/></td>                          
						<td></td>
					</tr>
					
					
					<tr>
						<td>描述/备注:</td>
						<td><s:property value="purchaselist.remark_purchaselist"/>
						
						</td>
						<td></td>
					</tr>
					
					<tr>
						<td>日期:</td>
						<td><s:property value="purchaselist.date_purchaselist"/></td>
						<td></td>
					</tr>
					
					<tr>
						<td>状态:</td>
						<td>
						
						<s:if test="purchaselist.isconfirm_purchaselist == false">
						
							 <form id="unlockpurchaselist_warehouse" name="unlockpurchaselist_warehouse" onSubmit="return true;" action="confirmpurchaselist_warehouse.action" method="POST" >
    	
									<table  border="0" >
										<tr>
										  <td>
											  未确认进仓<input type="hidden" name="id" size="30" value="<s:property value="purchaselist.id_purchaselist"/>"/>
											  <input type="submit" value="确认进仓" />
										  </td>
									  </tr>
									</table>
							</form> 
						</s:if>
						<s:elseif test="purchaselist.isconfirm_purchaselist == true">
							<form id="lockpurchaselist_warehouse" name="lockpurchaselist_warehouse" onSubmit="return true;" action="unconfirmpurchaselist_warehouse.action" method="POST" >
    	
									<table  border="0" >
										<tr>
										  <td>
											  	已确认进仓<input type="hidden" name="id" size="30" value="<s:property value="purchaselist.id_purchaselist"/>"/>
											  <input type="submit" value="锁定进仓" />
										  </td>
									  </tr>
									</table>
							</form> 
						</s:elseif>
						
							
						</td>
						<td></td>
					</tr>
					
					<tr>
						<td>确认进仓人:</td>
						<td><s:property value="purchaselist.unlockname_purchaselist"/></td>
						<td></td>
					</tr>
					
					<tr>
						<td><a href="preaddpurchaselist_warehouse.action">继续进仓</a></td>
						<td>
							<button onclick="openUrlForDialog('<%=basePath %>flow/managepurchaselistflow.action?kind=FLOW.WAREHOUSE.PURCHASELIST&kindid=<s:property value="purchaselist.id_purchaselist"/>')">
															  查看流程
														</button>
						</td>
						<td></td>
					</tr>
					
					

				</table>
			

	</td>
     		</tr>
     		 <tr>
     		<td>
     			
     			
     			
   
     			
     	</td>
     	</tr>
     	
     	
     	
     	</table>
    

	
	</div>
  </div>
  <div id="footer">
<jsp:include page="/background/tail.jsp"></jsp:include>
	</div>
</div>
  
  <table width="100%"  border="0" cellpadding="0" cellspacing="0" height="100%">
  	<tr>
  		<td valign="top">
  			<jsp:include page="/background/head.jsp"></jsp:include>
  		</td>
  	</tr>
  	<tr>
  		<td valign="top">
  			<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  
 		<tr>
    	<td width="270" align="center">
    		
    	</td>
    	<td width="100%">
    		
    		
    		
    	</td>
    </tr>
    
    <tr>
    	<td valign="top">
     		<div>
     		
     		</div>
		  	<jsp:include page="/background/left.jsp"></jsp:include>
				 
				 
				
     	</td>
     	
     	
     	<td valign="top" >
     <table border="0" cellpadding="0" cellspacing="0" >
    	 <tr>
     		<td>
     	
     	</td>
     		</tr>
 <tr>
     		<td>
				<s:token />
				
     
	</td>
     		</tr>
     		 <tr>
     		<td>
     		
					
					
					
				
		</table>
     	</td>
     	</tr>
     	
     	
     	
     	</table>
	</td>
</tr>

</table>
  		</td>
  	</tr>
  	<tr>
  		<td valign="bottom">
  			<jsp:include page="/background/tail.jsp"></jsp:include>
  		
  		</td>
  	</tr>
  
  </table>
  </body>
</html>
